from plotly import tools
import plotly
import plotly.graph_objs as go

trace0 = go.Contour(
    z=[[1, 2, 3, 4, 5, 6, 7, 8],
    [2, 4, 7, 12, 13, 14, 15, 16],
    [3, 1, 6, 11, 12, 13, 16, 17],
    [4, 2, 7, 7, 11, 14, 17, 18],
    [5, 3, 8, 8, 13, 15, 18, 19],
    [7, 4, 10, 9, 16, 18, 20, 19],
    [9, 10, 5, 27, 23, 21, 21, 21]],   
    line=dict(smoothing=0),
)
trace1 = go.Contour(
    z=[[1, 2, 3, 4, 5, 6, 7, 8],
    [2, 4, 7, 12, 13, 14, 15, 16],
    [3, 1, 6, 11, 12, 13, 16, 17],
    [4, 2, 7, 7, 11, 14, 17, 18],
    [5, 3, 8, 8, 13, 15, 18, 19],
    [7, 4, 10, 9, 16, 18, 20, 19],
    [9, 10, 5, 27, 23, 21, 21, 21]],
    line=dict(smoothing=0.95), 
)
data = tools.make_subplots(rows=1, cols=2,
    subplot_titles=('Smoothing_not_applied',
    'smoothing_applied'))
data.append_trace(trace0, 1, 1)
data.append_trace(trace1, 1, 2)

plotly.offline.plot(data)
